package com.genersoft.iot.vmp.gb28181.controller;

import com.genersoft.iot.vmp.gb28181.bean.CommonGBChannel;
import com.genersoft.iot.vmp.gb28181.controller.bean.ChannelReduce;
import com.genersoft.iot.vmp.gb28181.service.TestAllChannelManageService;
import com.github.pagehelper.PageInfo;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Tag(name = "全GB设备通道汇总管理")
@RestController
@Slf4j
@RequestMapping(value = "/api/common/channel")
public class TestAllChannelManageController {

    @Autowired
    TestAllChannelManageService testAllChannelManageService;

    @Parameter(name = "page", description = "当前页", required = true)
    @Parameter(name = "count", description = "每页呈现数量", required = true)
    @GetMapping("/testgetall")
    public PageInfo<CommonGBChannel> allChannelList(int page, int count) {
        log.info("获取所有GB通道");

        return testAllChannelManageService.allChannelList(page, count);
    }


}
